import { configureStore } from "@reduxjs/toolkit";
import cartSlice from "./cart/cartSlice";
import logger from 'redux-logger'
const store = configureStore({
  reducer: {
    cart: cartSlice.reducer,
  },
  middleware: getDefaultMiddleware => getDefaultMiddleware().concat(logger)
});

export default store;
